using System;

namespace WegasManagementSystem.Models
{
    /// <summary>
    /// 工资记录实体类
    /// </summary>
    public class SalaryRecord
    {
        /// <summary>
        /// 工资记录ID
        /// </summary>
        public long RecordId { get; set; }

        /// <summary>
        /// 员工ID
        /// </summary>
        public int EmpId { get; set; }

        /// <summary>
        /// 工资项ID
        /// </summary>
        public int ItemId { get; set; }

        /// <summary>
        /// 发放年月 (格式YYYY-MM)
        /// </summary>
        public string YearMonth { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdatedTime { get; set; }

        /// <summary>
        /// 员工姓名（非数据库字段）
        /// </summary>
        public string EmpName { get; set; }

        /// <summary>
        /// 工资项名称（非数据库字段）
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 工资项类型（非数据库字段）
        /// </summary>
        public string ItemType { get; set; }

        /// <summary>
        /// 部门名称（非数据库字段）
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 默认构造函数
        /// </summary>
        public SalaryRecord()
        {
            CreatedTime = DateTime.Now;
            UpdatedTime = DateTime.Now;
        }
    }
} 